package user;

import book.Book;
import book.BookList;
import ioperations.IOperations;

//不能具体的表示某一个用户，所以使用抽象类
public abstract class User {
    protected String name;

    protected IOperations[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doIoperations(int choice, BookList bookList) {
        iOperations[choice].work(bookList);
    }
}
